﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTradeRate : BaseObject
    {
        //begin
        public TopTradeRate(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private bool _ValidScore;
        public bool ValidScore
        {
            get
            {
                return _ValidScore;
            }
            set
            {
                SetPropertyValue("ValidScore", ref _ValidScore, value);
            }
        }
        private string _Tid;
        [Size(SizeAttribute.Unlimited)]
        public string Tid
        {
            get
            {
                return _Tid;
            }
            set
            {
                SetPropertyValue("Tid", ref _Tid, value);
            }
        }
        private string _TopOid;
        [Size(SizeAttribute.Unlimited)]
        public string TopOid
        {
            get
            {
                return _TopOid;
            }
            set
            {
                SetPropertyValue("TopOid", ref _TopOid, value);
            }
        }
        private string _Role;
        [Size(SizeAttribute.Unlimited)]
        public string Role
        {
            get
            {
                return _Role;
            }
            set
            {
                SetPropertyValue("Role", ref _Role, value);
            }
        }
        private string _Nick;
        [Size(SizeAttribute.Unlimited)]
        public string Nick
        {
            get
            {
                return _Nick;
            }
            set
            {
                SetPropertyValue("Nick", ref _Nick, value);
            }
        }
        private string _Result;
        [Size(SizeAttribute.Unlimited)]
        public string Result
        {
            get
            {
                return _Result;
            }
            set
            {
                SetPropertyValue("Result", ref _Result, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private string _RatedNick;
        [Size(SizeAttribute.Unlimited)]
        public string RatedNick
        {
            get
            {
                return _RatedNick;
            }
            set
            {
                SetPropertyValue("RatedNick", ref _RatedNick, value);
            }
        }
        private string _ItemTitle;
        [Size(SizeAttribute.Unlimited)]
        public string ItemTitle
        {
            get
            {
                return _ItemTitle;
            }
            set
            {
                SetPropertyValue("ItemTitle", ref _ItemTitle, value);
            }
        }
        private decimal _ItemPrice;
        public decimal ItemPrice
        {
            get
            {
                return _ItemPrice;
            }
            set
            {
                SetPropertyValue("ItemPrice", ref _ItemPrice, value);
            }
        }
        private string _Content;
        [Size(SizeAttribute.Unlimited)]
        public string Content
        {
            get
            {
                return _Content;
            }
            set
            {
                SetPropertyValue("Content", ref _Content, value);
            }
        }
        private string _Reply;
        [Size(SizeAttribute.Unlimited)]
        public string Reply
        {
            get
            {
                return _Reply;
            }
            set
            {
                SetPropertyValue("Reply", ref _Reply, value);
            }
        }
        //end
    }
}
